import {
    createBrowserRouter,
} from "react-router-dom";
import Home from './../views/Home.jsx';
import About from './../views/About.jsx'
import App from './../App.js'


const router = createBrowserRouter([
    {
      path: '/',
      element: <App />,
      children: [
        {
          path: '/',
          name: "首页",
          element: <Home />,
          children: [
            {
              path: '/home-detail',
              name: '主页详情',
              element: <div>home-detail</div>
            }
          ]
        },
        {
          path: '/about',
          name: '关于',
          element: <About />
        },
        {
          path: 'test1',
          name: '测试1',
          element: <div>测试1</div>
        },
        {
          path: 'test2',
          name: '测试2',
          element: <div>测试2</div>
        },
        {
          path: 'test3',
          name: '测试3',
          element: <div>测试3</div>
        }
      ]
    }
]);
export default router;